<template>
  <Echarts :options="pieOptions" />
</template>

<script lang="ts" setup>
import { getLineOptions } from '@/components/Echarts/options'
import { ref, onMounted } from 'vue'
const pieOptions = ref<object>()
const init = () => {
  pieOptions.value = getLineOptions({
    xAxis: {
      data: ['2022.7.5', '2022.7.6', '2022.7.7', '2022.7.8', '2022.7.9']
    },
    series: [
      {
        data: [4542, 4700, 4245, 3500, 4407]
      }
    ]
  })
}

onMounted(() => {
  init()
})
</script>
